package com.gdglc.spring.biz.auth;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.y2.authprj.bean.auth.model.FunctionauthorityInfo;
import com.y2.authprj.bean.auth.model.RoleInfo;
import com.y2.authprj.bean.auth.model.RoleauthorityInfo;
import com.y2.authprj.bean.auth.model.StaffInfo;
import com.y2.authprj.bean.auth.model.SysroleInfo;
import com.y2.authprj.exception.BizException;

public interface RoleBiz {
	public void add(RoleInfo roleInfo)throws BizException;

	public List<RoleInfo> findByRoleid(Integer roleId) throws BizException;
	
	public List<RoleInfo> findAllByName(String name);
	/**
	 * 条件分页
	 * @param staffInfo
	 * @return
	 */
	List<RoleInfo> queryByChose(RoleInfo roleInfo);
	
	PageInfo<RoleInfo> queryByPage(RoleInfo roleInfo,Integer pageNo,Integer pageSize);
	
	PageInfo<RoleInfo> findAllByName(String name,Integer pageNo,Integer pageSize);
	
	/**
	 * 逻辑删除
	 * @param id
	 * @return
	 */
	public void deleteRole(Integer roleauthorityId) throws BizException;
}
